package com.cskt.petproject178.pojo.param;

/**
 * 评论参数
 *
 * @author 27013
 **/


public class CommodityListParam {
    private Long spuId;
    private Integer isPic;
    private Integer pageNo=1;
    private Integer pageSize=20;
    private Integer currentPage=0;

    public Long getSpuId() {
        return spuId;
    }

    public void setSpuId(Long spuId) {
        this.spuId = spuId;
    }

    public Integer getIsPic() {
        return isPic;
    }

    public void setIsPic(Integer isPic) {
        this.isPic = isPic;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
        this.currentPage=(pageNo-1)*this.pageSize;
    }

    public Integer getPageSize() {
        return pageSize;

    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }
}
